package main

import (
	"fmt"
	"encoding/json"
)

func main() {
	type Book struct {
		Title string
		Authors []string
		Publisher string
		IsPublished bool
		Price float
	}

	gobook := Book{
		"Go语言编程",
		["Lavenliu", "Taoqi", "James"],
		"ituring.com.cn",
		true,
		19.99
	}

	b, err := json.Marshal(gobook)
	if err != nil {
		return
	}

	fmt.Println(b)
}
